package com.itheima.list;

import java.util.ArrayList;

public class Duilie {

    ArrayList list=new ArrayList();
    public void rudui(Object o){
        list.add(o);
    }

    public Object chudui(){
        Object o = list.remove(0);
        return o;
    }
}
